Skip to content

解除用户授权关系(openid)

通过openid, 商户解除用户授权关系

请求参数类型描述
openidstring用户标识
jsonobject声明请求的JSON数据结构
service_idstring服务ID
appidstring公众号id
reasonstring撤销原因
php
$instance->v3->payscore->permissions->openid->_openid_->terminate->postAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'service_id' => '2002000000000558128851361561536',
    'appid' => 'wxd678efh567hg6787',
    'reason' => 'reason',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/payscore/permissions/openid/{openid}/terminate')->postAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'service_id' => '2002000000000558128851361561536',
    'appid' => 'wxd678efh567hg6787',
    'reason' => 'reason',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/payscore/permissions/openid/{openid}/terminate']->postAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'service_id' => '2002000000000558128851361561536',
    'appid' => 'wxd678efh567hg6787',
    'reason' => 'reason',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->payscore->permissions->openid->_openid_->terminate->post([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'service_id' => '2002000000000558128851361561536',
    'appid' => 'wxd678efh567hg6787',
    'reason' => 'reason',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/payscore/permissions/openid/{openid}/terminate')->post([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'service_id' => '2002000000000558128851361561536',
    'appid' => 'wxd678efh567hg6787',
    'reason' => 'reason',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/payscore/permissions/openid/{openid}/terminate']->post([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'json' => [
    'service_id' => '2002000000000558128851361561536',
    'appid' => 'wxd678efh567hg6787',
    'reason' => 'reason',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory